import { request } from '@/utils/request.js'

// 查询所有审批员信息
export function lookApprover(){
	return request({
		url:'/account/lookApprover',
		method:'GET',
	})
}

// 通过用户id获取其请假记录
export function getLeave(data){
	return request({
		url:'/approver/getLeave',
		method:'POST',
		data
	})
}

// 通过审批员id获取审批员信息
export function getApprover(data){
	return request({
		url:'/userAttendance/userId',
		method:'POST',
		data
	})
}

// 新增请假数据
export function addLeave(data){
	return request({
		url:'/approver/addLeave',
		method:'POST',
		data
	})
}

